import Vue from 'vue'
import VueRouter from 'vue-router'
import FirstMap from '../views/firstMap/FirstMap'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'FirstMap',
        component: FirstMap
    },
    {
        path: '/basicDraw',
        name: 'BasicDraw',
        component: () =>
            import ('../views/basicDraw/basicDraw')
    },
    {
        path: '/layerDrawing',
        name: 'layerDrawing',
        component: () =>
            import ('../views/layerDrawing/layerDrawing')
    },
    {
        path: '/cleanLayer',
        name: 'cleanLayer',
        component: () =>
            import ('../views/cleanLayer/cleanLayer')
    },
    {
        path: '/colorTextDraw',
        name: 'colorTextDraw',
        component: () =>
            import ('../views/colorTextDraw/colorTextDraw')
    },
    {
        path: '/GeoStoredAndRead',
        name: 'GeoStoredAndRead',
        component: () =>
            import ('../views/GeoStoredAndRead/GeoStoredAndRead')
    },


]

const router = new VueRouter({
    mode: 'hash',
    base: process.env.BASE_URL,
    routes
})

export default router